<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	body{font-size:12px;text-align:center}
	div,span{float:left;border:solid 1px #ccc;margin:8px;width:65px;height:65px;}
	.GetFocus{border:solid 1px #666;background-color:#eee}
</style>
<script type="text/javascript" src="../../../js/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
	$(function(){
		$("span:hidden").show();
		$("div:visible").addClass("GetFocus");
	})
	$(function(){
		$("span:hidden").show().addClass("GetFocus");
		//包括：display:none、属性为type="hidden"和样式为visibility:hidden所有元素
	})
</script>
</head>
<body>
	<pan stype="display:none">Hidde</pan>
	<div>Visible</div>
</body>
</html>